if result is None:
    print "table 1 "
    return True
else:
    if re.search("doesn't exist", result):
        print "table 2 "
        return False
    else:
        print "table 3 "
        return True
